package cn.codeforfun.material;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by Administrator on 2017/2/16 0016.
 */
@Service
@Transactional
public class MaterialService {
    @Autowired
    private MaterialDao materialDao;

    public void save(Material material) {
        materialDao.save(material);
    }

    public Material findOne(Long id) {
        return materialDao.findOne(id);
    }
}
